package com.ft.turorial.spring.boot.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ft.turorial.spring.boot.domain.User;
import com.ft.turorial.spring.boot.repository.UserDao;

@Service
public class UserServiceImpl implements UserService {

	@Autowired
    private UserDao userDao;
	@Override
	public List<User> getList() {
		return userDao.getList();
	}
	@Override
	public int updateNameById(String name, int id) {
		return userDao.updateNameById(name, id);
	}
	@Override
	public User save(User user) {
		return userDao.save(user);
	}

}
